package com.zxl.yjb.fragment.home.sharemessage;

import android.text.TextUtils;

import com.zxl.yjb.app.Const;
import com.zxl.yjb.utils.SaveBeanUtil;

public class ShareMessage_Quxian_Fragment extends ShareMessageBaseFragment {
    @Override
    public String getCountry() {
        return locationBean.getCountry();
    }

    @Override
    public String getProvince() {
        String province = TextUtils.isEmpty((String) SaveBeanUtil.getBean(getActivity(), Const.LOCATION_SELECT_PROVINCE)) ? locationBean.getProvince() : (String) SaveBeanUtil.getBean(getActivity(), Const.LOCATION_SELECT_PROVINCE);
        return province;
//        return locationBean.getProvince();
    }

    @Override
    public String getCity() {
        String city = TextUtils.isEmpty((String) SaveBeanUtil.getBean(getActivity(), Const.LOCATION_SELECT_CITY)) ? locationBean.getCity() : (String) SaveBeanUtil.getBean(getActivity(), Const.LOCATION_SELECT_CITY);
        return city;
//        return locationBean.getCity();
    }

    @Override
    public String getDistrict() {
        String district = TextUtils.isEmpty((String) SaveBeanUtil.getBean(getActivity(), Const.LOCATION_SELECT_DISTRICT)) ? locationBean.getDistrict() : (String) SaveBeanUtil.getBean(getActivity(), Const.LOCATION_SELECT_DISTRICT);
        return district;
//        return locationBean.getDistrict();
    }

    @Override
    public String getStreet() {
        return "";
    }
}
